<div bsModal #createOrEditModal="bs-modal"  class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form *ngIf="active" #drawForm="ngForm" novalidate  autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span>导入工艺规程</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')" [disabled]="saving">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="row align-items-center m--margin-bottom-10">
                        <div class="col-xl-12">
                            <div class="form-group m-form__group align-items-center">
                                <div class="input-group">
                                    <input [(ngModel)]="filterText" name="filterText" autoFocus class="form-control m-input" [placeholder]="l('SearchWithThreeDot')" type="text">
                                    <span class="input-group-btn">
                                        <button (click)="getProcessDraw()" class="btn btn-primary" ><i class="flaticon-search-1" [attr.aria-label]="l('Search')"></i></button>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="primeng-datatable-container"
                    [busyIf]="primengTableHelper.isLoading">
                   <p-table #dataTable
                            (onLazyLoad)="getProcessDraw($event)"
                            [value]="primengTableHelper.records"
                            rows="{{primengTableHelper.defaultRecordsCountPerPage}}"
                            [paginator]="false"
                            [(selection)]="selectedCar"
                            [lazy]="true"
                            dataKey="id"
                            [scrollable]="true"
                            ScrollWidth="100%"
                            [responsive]="primengTableHelper.isResponsive"
                            [resizableColumns]="primengTableHelper.resizableColumns">
                       <ng-template pTemplate="header">
                           <tr>
                            <th style="width: 100px" >
                                 
                                选择
                             </th>
                               <th style="width: 150px" >
                                 
                                  图号
                               </th>
                               <th style="width: 150px" >
                                 名称
                               
                               </th>
                               <th style="width: 150px" >
                               编号
                              
                            </th>
                          
                           </tr>
                       </ng-template>
                       <ng-template pTemplate="body" let-record="$implicit">
                           <tr>
                            <td style="width: 100px">
                         
                                    <p-tableRadioButton [value]="record"></p-tableRadioButton>
                            
                                <!-- <input type="checkbox" ng-model="record.id" ng-change="selectOne(record.id,record)"> -->
                            </td>
                               <td style="width: 150px">
                                   <span class="ui-column-title"> </span>
                                   {{record.moduleCode}}
                               </td>
                               <td style="width: 150px">
                                   <span class="ui-column-title"></span>
                                   {{record.moduleName}}
                               </td>
                               <td style="width: 150px">
                                   <span class="ui-column-title"> </span>
                                   {{record.techniqueNumber}}
                               </td>
                           
                           </tr>
                       </ng-template>
                   </p-table>
                   <div class="primeng-no-data" *ngIf="primengTableHelper.totalRecordsCount == 0" >
                       {{'NoData' | localize}}
                   </div>
                   <div class="primeng-paging-container">
                       <p-paginator [rows]="primengTableHelper.defaultRecordsCountPerPage"
                                    #paginator
                                    (onPageChange)="getProcessDraw($event)"
                                    [totalRecords]="primengTableHelper.totalRecordsCount"
                                    [rowsPerPageOptions]="primengTableHelper.predefinedRecordsCountPerPage">

                       </p-paginator>
                       <span class="total-records-count">
                           {{'TotalRecordsCount' | localize:primengTableHelper.totalRecordsCount}}
                       </span>
                   </div>
               </div>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">取消</button>
                    <button (click)="save()" type="button" class="btn btn-primary" [disabled]="!drawForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>导入</span></button>
                </div>
            </form>
        </div>
    </div>
</div>
